package io.wins.vertx.test;

class Stu implements Comparable<Stu> {
    int sum;

    public Stu(final int sum) {
        this.sum = sum;
    }

    @Override
    public int compareTo(final Stu s) {
        return s.sum - this.sum;
    }
}


public class Student {
    public static void main(final String[] args) {
        final Stu s1 = new Stu(10);
        final Stu s2 = new Stu(20);
        final Stu s3 = new Stu(30);
        final Stu[] stus = {s1, s2, s3};
    }
}